package com.wskj.controller.my;

import com.wskj.common.core.controller.BaseController;
import com.wskj.common.core.domain.AjaxResult;
import com.wskj.system.service.ISysUserService;
import com.wskj.workbench.vo.app.AppZhaoshangVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "招商名额")
@AllArgsConstructor
@RestController
@RequestMapping("/api/my")
public class ApiZhaoshangController extends BaseController {
    private final ISysUserService sysUserService;

    @ApiOperation("查询招商名额信息")
    @GetMapping(value = "/zhaoshang")
    public AjaxResult<AppZhaoshangVo> zhaoshang() {
        AppZhaoshangVo appZhaoshangVo = sysUserService.getZhaoShang();
        return AjaxResult.success(appZhaoshangVo);
    }
}
